#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMediaPlayer>
#include <QGraphicsScene>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_openButton_clicked(bool checked);
    void onVideoSizeChanged(const QSizeF &size);
    void on_captureButton_clicked();

private:
    Ui::Widget *ui;
    QMediaPlayer* player;
    QGraphicsScene* scene;
    QGraphicsVideoItem* videoItem;
};
#endif // WIDGET_H
